package com.cjw.pojo.entity.database;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.Table;

@Data
@ToString(callSuper = true)
@Table(name = "resource")
@EqualsAndHashCode(callSuper = true)
@ApiModel("资源")
public class Resource extends BaseEntity{
    @ApiModelProperty("资源名称")
    private String name;

    @ApiModelProperty("访问路由")
    private String url;

    @ApiModelProperty("访问组件路径")
    private String src;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("父节点id")
    private Long parentId;

    @ApiModelProperty("是否启用 0否 1是")
    private Integer type;

}
